<template>
  <div>
      <p>login</p>
      <input type="text" v-model="username">
  </div>
</template>

<script>
export default {
    data() {
        return {
            username: ''
        }
    },
    created() {
        console.log('login-create');
    },
    destroyed() {
        console.log('login-destroyed');
    },
    activated() {
        console.log('login-我显示了');
    },
    deactivated() {
        console.log('login-我隐藏了');
    },
    methods: {
        fn1() {
            console.log('我是login的函数');
        }
    }
}
</script>

<style>

</style>